package com.yzx.yzxaop.aopTest;

import com.yzx.yzxaop.annotation.TransactionTest;

@TransactionTest
public class Target implements Service{

    private static int money = 1000;

    @Override
    public void update(int data) {
        money+=data;
        System.out.println("Target当前余额:"+money);
    }

    @Override
    public void add() {
        System.out.println("Target添加成功");
    }
}
